package com.ali8ba.security.domain;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import com.ali8ba.Domain;

@Entity()
@Table(name = "mgr_users")
public class User extends Domain {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private String userId;

	private String password;

	private String userName;

	public User() {

	}

	@Id()
	@Column(name = "userid", unique = true, nullable = false)
	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	@Basic()
	@Column(name = "password", unique = true, nullable = false, length = 32)
	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	@Basic()
	@Column(name = "username", length = 20)
	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

}
